package flatbuf
import (
flatbuffers "github.com/google/flatbuffers/go"
)
type SparseMatrixIndexCSX struct {
_tab flatbuffers .Table
}
func GetRootAsSparseMatrixIndexCSX (buf []byte , offset flatbuffers .UOffsetT ) *SparseMatrixIndexCSX {
n := flatbuffers .GetUOffsetT (buf [offset :])
x := &SparseMatrixIndexCSX {}
x .Init (buf , n +offset )
return x
}
func FinishSparseMatrixIndexCSXBuffer (builder *flatbuffers .Builder , offset flatbuffers .UOffsetT ) {
builder .Finish (offset )
}
func GetSizePrefixedRootAsSparseMatrixIndexCSX (buf []byte , offset flatbuffers .UOffsetT ) *SparseMatrixIndexCSX {
n := flatbuffers .GetUOffsetT (buf [offset +flatbuffers .SizeUint32 :])
x := &SparseMatrixIndexCSX {}
x .Init (buf , n +offset +flatbuffers .SizeUint32 )
return x
}
func FinishSizePrefixedSparseMatrixIndexCSXBuffer (builder *flatbuffers .Builder , offset flatbuffers .UOffsetT ) {
builder .FinishSizePrefixed (offset )
}
func (rcv *SparseMatrixIndexCSX ) Init (buf []byte , i flatbuffers .UOffsetT ) {
rcv ._tab .Bytes = buf
rcv ._tab .Pos = i
}
func (rcv *SparseMatrixIndexCSX ) Table () flatbuffers .Table {
return rcv ._tab
}
func (rcv *SparseMatrixIndexCSX ) CompressedAxis () SparseMatrixCompressedAxis {
o := flatbuffers .UOffsetT (rcv ._tab .Offset (4 ))
if o != 0 {
return SparseMatrixCompressedAxis (rcv ._tab .GetInt16 (o + rcv ._tab .Pos ))
}
return 0
}
func (rcv *SparseMatrixIndexCSX ) MutateCompressedAxis (n SparseMatrixCompressedAxis ) bool {
return rcv ._tab .MutateInt16Slot (4 , int16 (n ))
}
func (rcv *SparseMatrixIndexCSX ) IndptrType (obj *Int ) *Int {
o := flatbuffers .UOffsetT (rcv ._tab .Offset (6 ))
if o != 0 {
x := rcv ._tab .Indirect (o + rcv ._tab .Pos )
if obj == nil {
obj = new (Int )
}
obj .Init (rcv ._tab .Bytes , x )
return obj
}
return nil
}
func (rcv *SparseMatrixIndexCSX ) IndptrBuffer (obj *Buffer ) *Buffer {
o := flatbuffers .UOffsetT (rcv ._tab .Offset (8 ))
if o != 0 {
x := o + rcv ._tab .Pos
if obj == nil {
obj = new (Buffer )
}
obj .Init (rcv ._tab .Bytes , x )
return obj
}
return nil
}
func (rcv *SparseMatrixIndexCSX ) IndicesType (obj *Int ) *Int {
o := flatbuffers .UOffsetT (rcv ._tab .Offset (10 ))
if o != 0 {
x := rcv ._tab .Indirect (o + rcv ._tab .Pos )
if obj == nil {
obj = new (Int )
}
obj .Init (rcv ._tab .Bytes , x )
return obj
}
return nil
}
func (rcv *SparseMatrixIndexCSX ) IndicesBuffer (obj *Buffer ) *Buffer {
o := flatbuffers .UOffsetT (rcv ._tab .Offset (12 ))
if o != 0 {
x := o + rcv ._tab .Pos
if obj == nil {
obj = new (Buffer )
}
obj .Init (rcv ._tab .Bytes , x )
return obj
}
return nil
}
func SparseMatrixIndexCSXStart (builder *flatbuffers .Builder ) {
builder .StartObject (5 )
}
func SparseMatrixIndexCSXAddCompressedAxis (builder *flatbuffers .Builder , compressedAxis SparseMatrixCompressedAxis ) {
builder .PrependInt16Slot (0 , int16 (compressedAxis ), 0 )
}
func SparseMatrixIndexCSXAddIndptrType (builder *flatbuffers .Builder , indptrType flatbuffers .UOffsetT ) {
builder .PrependUOffsetTSlot (1 , flatbuffers .UOffsetT (indptrType ), 0 )
}
func SparseMatrixIndexCSXAddIndptrBuffer (builder *flatbuffers .Builder , indptrBuffer flatbuffers .UOffsetT ) {
builder .PrependStructSlot (2 , flatbuffers .UOffsetT (indptrBuffer ), 0 )
}
func SparseMatrixIndexCSXAddIndicesType (builder *flatbuffers .Builder , indicesType flatbuffers .UOffsetT ) {
builder .PrependUOffsetTSlot (3 , flatbuffers .UOffsetT (indicesType ), 0 )
}
func SparseMatrixIndexCSXAddIndicesBuffer (builder *flatbuffers .Builder , indicesBuffer flatbuffers .UOffsetT ) {
builder .PrependStructSlot (4 , flatbuffers .UOffsetT (indicesBuffer ), 0 )
}
func SparseMatrixIndexCSXEnd (builder *flatbuffers .Builder ) flatbuffers .UOffsetT {
return builder .EndObject ()
}
The pages are generated with Golds v0.8.7 . (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu .
PR and bug reports are welcome and can be submitted to the issue list .
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds .